import request from '@/utils/request'
//新增部门
export const addDepartments =data =>request.post('/company/department',data)
//获取所有的部门详情
export const getDepartments =() =>request.get('/company/department')
//根据id修改部门详情
export const updateDepartments =data=>request.put(`/company/department/${data.id}`)
//根据id删除部门
export const delDepartments =id=>request.delete(`/company/department/${id}`)
//获取一个部门的详情
export const getDepartmentsDetail =id=>request.get(`/company/department/${id}`)
